package com.greensam.pixelengine.pojo.entity;

import com.greensam.pixelengine.pojo.base.BaseEntity;
import jakarta.persistence.*;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.Comment;

/**
 * @author Ma Chengrui
 * @since 2025/9/18 17:49
 */
@Getter
@Setter
@Entity
@Table(name = "permission_info", indexes = {
        @Index(name = "idx_code", columnList = "code")
})
@Comment("权限信息表")
public class PermissionPo extends BaseEntity {

    @Column(nullable = false, length = 32)
    @Comment("权限名称")
    private String name;

    @Column(nullable = false, length = 32)
    @Comment("权限标识")
    private String code;

    @Column(length = 32)
    @Comment("权限描述")
    private String description;
}
